/**
 * Created by dukes on 2015/12/24.
 */
//module game {
    class BathConfig {
        public diamond:number;
        public times:number;
        public number:number;

        public constructor(data:any = null) {
            if (data)
                this.initFromData(data);
        }

        public initFromData(data:any) {
            this.diamond = data.diamond;
            this.times = data.times;
            this.number = data.number;
        }
    }
//}